//
//  YSProblemDetailsCtrl.m
//  Yueshi
//
//  Created by yueshi－mac1 on 16/1/25.
//  Copyright © 2016年 悦食中国. All rights reserved.
//

#import "YSProblemDetailsCtrl.h"

@interface YSProblemDetailsCtrl ()
@property (weak, nonatomic) IBOutlet UILabel *askLabel;
@property (weak, nonatomic) IBOutlet UILabel *answerLabel;

@property (strong, nonatomic) YSCommonProblem *problem;
@end

@implementation YSProblemDetailsCtrl

- (instancetype)initWithProblem:(YSCommonProblem *)problem{
    self = [super init];
    if (self) {
        _problem = problem;
    }
    return self;
}

- (void)viewDidLoad {
    [super viewDidLoad];
   
    self.navigationItem.title = @"联系客服";
    
    [self initData];
}

- (void) initData{
    self.askLabel.text = [NSString stringWithFormat:@"Q:%@",self.problem.val];
    self.answerLabel.text = self.problem.replay;
}


@end
